package Test;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* Created by wangyg on 2016/11/7.
*/
class MyClass{

	private static final Logger myLogger = LoggerFactory.getLogger("module.MyClass");
	private static final Logger myLoggerNew= LoggerFactory.getLogger("module.MyClass.NewClass");

	public void printLogger(){
		boolean isEnable =true;
		for(int i =0; i<=200000;i++){
			if(isEnable){
				myLogger.debug("Printing value : "+i); //even
				isEnable = false;
			}else{
				myLoggerNew.debug("Printing value : "+i); //odd
				isEnable = true;
			}
		}
	}

	/**
	 * Created by wangyg on 2016/10/28.
	 */
	public static class Test {


			public static void main(String[] args){
				DefaultConnector receiver = new DefaultConnector();
				receiver.receiveMessageTopic();
				MyClass myClass = new MyClass();
				myClass.printLogger();
			}
		}
}
